<?php
/**
*发送的短信
**/
namespace Fang\AlysmsBundle\Entity;

use Doctrine\ORM\Mapping as ORM;//数据库映射设定

/**
*@ORM\Entity
*@ORM\Table(name="alysmsmessage")
**/
class SmsMessage
{
	/**
	*@ORM\Column(type="integer")
	*@ORM\Id
	*@ORM\GeneratedValue(strategy="AUTO")
	**/
	private $id;
	/**
	*@ORM\Column(type="string", length=255)
	**/
	private $smstype;
	/**
	*@ORM\Column(type="string", length=500)
	**/
	private $params;
	/**
	*@ORM\Column(type="string", length=255)
	**/
	private $phone;
	/**
	*判断是否已经发送
	*@ORM\Column(type="integer")
	**/
	private $is_sended;
	/**
	*判断是否是队列发送
	*@ORM\Column(type="integer")
	**/
	private $is_quence;
	/**
	*已经尝试发送次数
	*@ORM\Column(type="integer")
	**/
	private $sended_count;
	/**
	*@ORM\Column(type="integer")
	**/
	private $created;
	/**
	*@ORM\Column(type="integer")
	**/
	private $changed;


    /**
     * Get id
     *
     * @return integer
     */
    public function getId()
    {
        return $this->id;
    }

    /**
     * Set smstype
     *
     * @param string $smstype
     *
     * @return SmsMessage
     */
    public function setSmstype($smstype)
    {
        $this->smstype = $smstype;

        return $this;
    }

    /**
     * Get smstype
     *
     * @return string
     */
    public function getSmstype()
    {
        return $this->smstype;
    }

    /**
     * Set params
     *
     * @param string $params
     *
     * @return SmsMessage
     */
    public function setParams($params)
    {
        $this->params = $params;

        return $this;
    }

    /**
     * Get params
     *
     * @return string
     */
    public function getParams()
    {
        return $this->params;
    }

    /**
     * Set phone
     *
     * @param string $phone
     *
     * @return SmsMessage
     */
    public function setPhone($phone)
    {
        $this->phone = $phone;

        return $this;
    }

    /**
     * Get phone
     *
     * @return string
     */
    public function getPhone()
    {
        return $this->phone;
    }

    /**
     * Set isSended
     *
     * @param integer $isSended
     *
     * @return SmsMessage
     */
    public function setIsSended($isSended)
    {
        $this->is_sended = $isSended;

        return $this;
    }

    /**
     * Get isSended
     *
     * @return integer
     */
    public function getIsSended()
    {
        return $this->is_sended;
    }

    /**
     * Set isQuence
     *
     * @param integer $isQuence
     *
     * @return SmsMessage
     */
    public function setIsQuence($isQuence)
    {
        $this->is_quence = $isQuence;

        return $this;
    }

    /**
     * Get isQuence
     *
     * @return integer
     */
    public function getIsQuence()
    {
        return $this->is_quence;
    }

    /**
     * Set sendedCount
     *
     * @param integer $sendedCount
     *
     * @return SmsMessage
     */
    public function setSendedCount($sendedCount)
    {
        $this->sended_count = $sendedCount;

        return $this;
    }

    /**
     * Get sendedCount
     *
     * @return integer
     */
    public function getSendedCount()
    {
        return $this->sended_count;
    }

    /**
     * Set created
     *
     * @param integer $created
     *
     * @return SmsMessage
     */
    public function setCreated($created)
    {
        $this->created = $created;

        return $this;
    }

    /**
     * Get created
     *
     * @return integer
     */
    public function getCreated()
    {
        return $this->created;
    }

    /**
     * Set changed
     *
     * @param integer $changed
     *
     * @return SmsMessage
     */
    public function setChanged($changed)
    {
        $this->changed = $changed;

        return $this;
    }

    /**
     * Get changed
     *
     * @return integer
     */
    public function getChanged()
    {
        return $this->changed;
    }
}
